<h2>Resultats pour la recherche : <?php echo $keywords; ?> </h2>

<div id="users_results">
    
    <table cellpadding="0" cellspacing="0">
        </tr>    
        <th>Liste de CV</th>
        <tr>
            <td>Nom</td>
            <td>Prenom</td>
            <td>Intitule CV</td>
            <td>Lien CV</td>
        </tr>    
        <?php  foreach ($list_cvs as $cv):?>
             <?php if($cv['u']['privilege_id'] == '1'):?>
            <tr>
                <td> <?php echo $cv['u']['lastname'];?></td>
                <td> <?php echo $cv['u']['firstname'];?></td>
                <td> <?php echo $cv['c']['title'];?></td>
                <td><?php echo $html->link('Cliquez', array('controller' => 'cvs','action' => 'view', $cv['c']['id']))?></td>
            </tr>
            <?php endif;?>
        <?php endforeach;?>
        
    </table>
    <br /><br />
    <table cellpadding="0" cellspacing="0">
        <th>Recherche avancee</th>
        <tr>
            <td>
            <?php
                $tabKeysCat  = array(1 => 'Titre de CV',2 => 'Interets de CV',3=> 'Categorie de CV',4 => 'Langue',5 => 'Competences');
                echo $this->Form->create('searchForm', array('id'=>'searchform','url' => array('controller' => 'users', 'action' =>'searchKeywords')));
                echo "Rechercher par :".$form->select('idCatKeywords',$tabKeysCat);
		echo $form->input('keywords', array('id'=> 's','style'=>'margin-left:15px','label' => 'Tapez le mot cle'));
		
            ?>
            </td>
        </tr>
        <tr>
            <td>
            <?php echo $form->submit('Valider', array('id' => 'searchsubmit'));    
                  echo $form->end();?></td>
        </tr>    
    </table>    
    
    
</div>


